import getApiData from "@/services/cpasRequest";
import notify from 'devextreme/ui/notify';

// 获取报表项目基础数据
export async function getReportItemsData(params: {
  dbname: string;
  Data_ID: string;
  ownerReport?: string
}) {
  const res = await getApiData("account.reportItem.getDataList", params);
  if (res.ok) {
    return res.data;
  }
  return {};
}

// 获取表格数据
export async function getSubjectSDB(params: {
  dbname: string;
  Data_ID: string;
}) {
  const res = await getApiData("account.subjectSDB.getDataList", params);
  if (res.ok) {
    return res.data;
  }
  return {};
}